<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        header{
            height: 50px;
            background-color: rgb(156, 143, 143);
        }
        main{
            width: 1200px;
            margin: 0 auto;
            background-color: rgb(137, 146, 170);
            border:1px solid red;
            
        }
        .left{
            height: 600px;
            width: 500px;
            background-color: rgb(137, 170, 147);
            float: left;
        }
        .right{
            height: 600px;
            width: 500px;
            background-color: rgb(43, 160, 78);
            float: left;
        }
        footer{
            height: 60px;
            background-color: rgb(54, 48, 48);
        }
       
        .lc{
            border: 1px solid greenyellow;
        }
        .l1,.l2{
            width: 100px;
            height: 100px;
            background-color: rgb(170, 61, 61);
            border: 1px solid blue;
            float: left;
        }
        
        .clearfix::after{
            content: "";
            display: block;
            clear: both;
        }

        
    </style>
</head>
<body>
    <header></header>
    <main class="clearfix">
        <div class="left">left
            <div class="lc clearfix">
                    <div class="l1 ">l1</div>
                    <div class="l2">l2</div>
            </div>
            
        </div>
        <div class="right">right</div>
        <!-- <div class="clear"></div> -->
    </main>
    <footer></footer>
</body>
</html>